package models

import (
	"hc-admin/common/models"
)

type BusUserData struct {
	models.Model

	NameCht      string `json:"nameCht" gorm:"type:varchar(100);comment:姓名(中文)"`
	NameEng      string `json:"nameEng" gorm:"type:varchar(100);comment:姓名(英文)"`
	IdCard       string `json:"idCard" gorm:"type:varchar(255);comment:证件号码"`
	BankCert     string `json:"bankCert" gorm:"type:varchar(255);comment:户口/银行卡资料"`
	IdCardFile   string `json:"idCardFile" gorm:"type:varchar(255);comment:身份证资料文件"`
	StaffId      string `json:"staffId" gorm:"type:varchar(255);comment:客户主任编号"`
	BirthDate    string `json:"birthDate" gorm:"type:varchar(255);comment:出生日期"`
	Job          string `json:"job" gorm:"type:varchar(255);comment:职业"`
	AnnualSalary string `json:"annualSalary" gorm:"type:varchar(255);comment:年薪"`
	Nationality  string `json:"nationality" gorm:"type:varchar(255);comment:国家"`
	Email        string `json:"email" gorm:"type:varchar(255);comment:电邮地址"`
	Equity       string `json:"equity" gorm:"type:varchar(255);comment:净资产"`
	Addr         string `json:"addr" gorm:"type:varchar(255);comment:现居住地址"`
	Sex          string `json:"sex" gorm:"type:tinyint;comment:性别"`
	UserPwd      string `json:"userPwd" gorm:"type:varchar(255);comment:密码"`
	Balance      string `json:"balance" gorm:"type:varchar(255);comment:余额"`
	Status       string `json:"status" gorm:"type:varchar(4);comment:状态"`

	MidDepositMoney  string `gorm:"type:varchar(255);comment:中小企_存款资金" json:"midDepositMoney"`
	MidLeverageRatio string `gorm:"type:varchar(255);comment:中小企_信贷杠杆比率" json:"midLeverageRatio"`
	MidApproveMoney  string `gorm:"type:varchar(255);comment:中小企_批核金额" json:"midApproveMoney"`
	MidAPR           string `gorm:"type:varchar(255);comment:中小企_年利率" json:"midAPR"`

	PrivateDepositMoney  string `gorm:"type:varchar(255);comment:私人_存款资金" json:"privateDepositMoney"`
	PrivateLeverageRatio string `gorm:"type:varchar(255);comment:私人_信贷杠杆比率" json:"privateLeverageRatio"`
	PrivateApproveMoney  string `gorm:"type:varchar(255);comment:私人_批核金额" json:"privateApproveMoney"`
	PrivateAPR           string `gorm:"type:varchar(255);comment:私人_年利率" json:"privateAPR"`

	CircleDepositMoney  string `gorm:"type:varchar(255);comment:循环_存款资金" json:"circleDepositMoney"`
	CircleLeverageRatio string `gorm:"type:varchar(255);comment:循环_信贷杠杆比率" json:"circleLeverageRatio"`
	CircleApproveMoney  string `gorm:"type:varchar(255);comment:循环_批核金额" json:"circleApproveMoney"`
	CircleAPR           string `gorm:"type:varchar(255);comment:循环_年利率" json:"circleAPR"`

	MortgageValuation    string `gorm:"type:varchar(255);comment:按揭_估值" json:"mortgageValuation"`
	MortgagePercentage   string `gorm:"type:varchar(255);comment:按揭_成数" json:"mortgagePercentage"`
	MortgageApproveMoney string `gorm:"type:varchar(255);comment:按揭_批核金额" json:"mortgageApproveMoney"`
	MortgageAPR          string `gorm:"type:varchar(255);comment:按揭_年利率" json:"mortgageAPR"`

	FixedDepositMoney    string `gorm:"type:varchar(255);comment:定期_存款资金" json:"fixedDepositMoney"`
	FixedDepositDeadline string `gorm:"type:varchar(255);comment:定期_存款期限" json:"fixedDepositDeadline"`
	FixedDepositAPR      string `gorm:"type:varchar(255);comment:定期_年利率" json:"fixedDepositAPR"`

	InvestDepositMoney         string `gorm:"type:varchar(255);comment:投资_存款资金" json:"investDepositMoney"`
	InvestDepositNetWorth      string `gorm:"type:varchar(255);comment:投资_资金净值" json:"investDepositNetWorth"`
	InvestDepositFloatGainLoss string `gorm:"type:varchar(255);comment:投资_浮动盈亏" json:"investDepositFloatGainLoss"`

	BankNo                        string `gorm:"type:varchar(50);default:'';comment:银行_编号" json:"bankNo"`
	BankName                      string `gorm:"type:varchar(50);default:'';comment:银行_名称" json:"bankName"`
	BankAccountNo                 string `gorm:"type:varchar(50);default:'';comment:银行_账户号码" json:"bankAccountNo"`
	BankWithdrawalSilverCode      string `gorm:"type:varchar(50);default:'';comment:银行_提款银码" json:"bankWithdrawalSilverCode"`
	BankAccountIdentificationCode string `gorm:"type:varchar(50);default:'';comment:银行_转数快识别码" json:"bankAccountIdentificationCode"`

	models.ModelTime
	models.ControlBy
}

func (BusUserData) TableName() string {
	return "bus_user_data"
}

func (e *BusUserData) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *BusUserData) GetId() interface{} {
	return e.Id
}
